<template>
    <div class="outContainer">
        <div class="title">项目看板</div>
        <div class="moreBox">
            <div class="moreName">全部</div>
            <div class="moreIconBox">
                <img class="moreIcon" src="../../../assets/icon/downIcon.png" alt="">
            </div>
        </div>
        <div class="searchBox">
            <div class="searchIconBox">
                <img class="searchIcon" src="../../../assets/icon/searchIcon.png" alt="">
            </div>
            <el-input class="inp" @clear="clear" placeholder="可输入客户智能搜索" @blur="search" clearable v-model="searchContent"></el-input>
        </div>
    </div>
</template>
<script>
export default {
    data(){
        return {
            searchContent:''
        }
    },
    mounted(){
        
    },
    methods:{
        search(){
            this.$emit('search',this.searchContent)
        },
        clear(){
            this.$emit('search','')
        }
    }
}
</script>
<style>
/* 清除 el-input 的边框样式 */
.searchBox .el-input__inner {
  border: none !important; /* 使用 !important 来确保覆盖默认样式 */
  box-shadow: none !important; /* 清除阴影 */
}
 
/* 如果需要，还可以添加自定义的边框样式 */
.searchBox .el-input__inner:focus {
  outline: none; /* 清除聚焦时的轮廓 */
  border: none; /* 自定义边框颜色 */
}
</style>
<style scoped>
.outContainer{
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.title{
    font-size: 20px;
    line-height: 28px;
    margin-right: 48px;
    font-weight: 500;
    color: #596992;
}
.moreBox{
    display: flex;
    align-items: center;
    margin-right: 50px;
    cursor: pointer;
}
.moreName{
    font-size: 14px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.8468);
    margin-right: 8px;
}
.moreIconBox{
    display: flex;
    align-items: center;
    justify-content: center;
}
.moreIcon{
    width: 12px;
    height: 7px;
}
.searchBox{
    height: 28px;
    border-radius: 14px;
    background-color: white;
    padding-left:10px;
    display: flex;
    overflow: hidden;
    align-items: center;
}
.searchIconBox{
    display: flex;
    align-items: center;
    justify-content: center;
}
.searchIcon{
    width: 12px;
    height: 12px;
}
.inp{
    line-height: 28px;
    font-size: 14px;
}
</style>
